<%@ Page Language="C#" MasterPageFile="~/pages/MasterPage.master" AutoEventWireup="true" CodeFile="FacilityBooking.aspx.cs" Inherits="pages_FaclicilyBooking" Title="Untitled Page" %>

<%@ Register Src="PersonalInfoControl.ascx" TagName="PersonalInfoControl" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headHolder" Runat="Server">
    <link rel="stylesheet" type="text/css" href="../scripts/jQuery/themes/ui-lightness/jquery.ui.all.css" />
    <script src="../scripts/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function() {
		$("#<%=txtRentDate.ClientID %>" ).datepicker();	
	    });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="bodyHoder" Runat="Server">
   
    <h4>Facility booking</h4>
            <hr />
             <asp:Label ID="lblMessage" runat="server"></asp:Label>
    <uc1:PersonalInfoControl ID="uctPersonInfo" runat="server"/>
    
    <br />
    <table class="form_table">
        <tr>
            <td style="width: 100px">
                Facility:</td>
            <td style="width: 100px">
                <asp:Label ID="lblFacility" runat="server"></asp:Label></td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                Price:</td>
            <td style="width: 100px">
                <asp:Label ID="lblPrice" runat="server" Text="0"></asp:Label></td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                Rent date *:</td>
            <td style="width: 100px">
                <asp:TextBox ID="txtRentDate" runat="server"></asp:TextBox></td>
            <td style="width: 100px">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtRentDate"
                    Display="Dynamic" ErrorMessage="'Rent date' is required field" ValidationGroup="A">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtRentDate"
                    Display="Dynamic" ErrorMessage="Invalid date value" ValidationExpression="\d{1,2}/\d{1,2}/\d{4}"
                    ValidationGroup="A">*</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 100px">
                During *:</td>
            <td style="width: 100px">
                <asp:TextBox ID="txtDuring" runat="server" Text="0"></asp:TextBox></td>
            <td style="width: 100px">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtDuring"
                    Display="Dynamic" ErrorMessage="'Rent date' is required field" ValidationGroup="A">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtDuring"
                    Display="Dynamic" ErrorMessage="Invalid date value" ValidationExpression="\d+"
                    ValidationGroup="A">*</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 100px">
                Quantity *:</td>
            <td style="width: 100px">
                <asp:TextBox ID="txtQuantity" runat="server"></asp:TextBox></td>
            <td style="width: 100px">
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtQuantity"
                    Display="Dynamic" ErrorMessage="Invalid number value for Quantitty" ValidationGroup="A" ValidationExpression="\d+">*</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 100px">
                Special requirements:<br />
            </td>
            <td style="width: 100px">
                <asp:TextBox ID="txtNote" runat="server" Height="113px" TextMode="MultiLine" Width="221px"></asp:TextBox></td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
                <asp:LinkButton ID="lnkAccept" runat="server" ValidationGroup="A" CssClass="c_button" OnClick="lnkAccept_Click">Accept</asp:LinkButton>
                <asp:LinkButton ID="lnkChange" runat="server" CssClass="c_button">Change</asp:LinkButton></td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
        </tr>
    </table>
</asp:Content>

